/* ============================================================
   18-video.css
   Thematisch aufgeteilt aus default.css + SiTTsBlazor.css
   ============================================================ */

/* ---- aus default.css ---- */

.video-grid {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
}

.video-thumbnail {
    width: 45%;
    cursor: pointer;
    text-align: center;
}

    .video-thumbnail img {
        width: 100%;
        height: auto;
        border-radius: 6px;
    }

.video-title {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

/* --- Layoutstruktur --- */
.video-section {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
}

.video-title {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    padding: 0 1rem;
    border-radius: 8px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
    background-color: #fff;
}

.video-overlay {
    width: 100%;
    max-height: 100vh;
    padding: 0;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius:1rem;
}

    .video-overlay video {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 65vh; /* z.B. 65% der Fensterhöhe, damit Titel etc. noch sichtbar bleiben */
        object-fit: contain;
    }

/* Linke Seite: Beschreibung + Kommentare */
.video-detail-section {
    flex: 3;
    min-width: 300px;
}

.video-desc,
.side-section {
    font-size: 1rem;
    margin-bottom: 1rem;
    background-color: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}

/* Kommentarbereich */
.video-comment-section {
    background-color: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
}

    .video-comment-section textarea {
        width: 100%;
        resize: vertical;
        min-height: 80px;
        border-radius: 6px;
        padding: 0.5rem;
        border: 1px solid #ccc;
        margin-bottom: 0.5rem;
        font-size: 1rem;
    }

.video-comment-section ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.video-comment-section li {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
}
/* Video Card System - konfliktfrei */
.vc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem;
}

.vc-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

    .vc-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    }

/* ---- Löschen (rollen-gated), App-eigene Werte ---- */
.vc-delete {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #f3f3f3;
    color: #e30613;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, background 0.15s ease;
}

.vc-card:hover .vc-delete {
    opacity: 1;
}

.vc-delete:hover {
    background: #e30613;
    color: #fff;
    border-color: #e30613;
}

.vc-delete-confirm {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #f3f3f3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    font-size: 0.75rem;
    color: #4B5675;
}

    .vc-delete-confirm button {
        border: none;
        border-radius: 6px;
        padding: 3px 9px;
        cursor: pointer;
        font-size: 0.75rem;
    }

.vc-del-yes {
    background: #e30613;
    color: #fff;
}

.vc-del-no {
    background: #f3f3f3;
    color: #4B5675;
}

/* ---- Teilen / Senden an (Karten + Video-Detail) ---- */
.vc-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    flex-wrap: wrap;
}

.vc-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #f3f3f3;
    background: #fff;
    color: #4B5675;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: .78rem;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

    .vc-action:hover {
        background: #009ee0;
        color: #fff;
        border-color: #009ee0;
    }

.vc-share-feedback,
.share-feedback {
    font-size: .75rem;
    color: #009ee0;
    margin-left: 4px;
    align-self: center;
}

.vc-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.vc-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

    .vc-content h4 {
        font-size: 1.1rem;
        font-weight: 600;
        margin: 0;
    }

.vc-description {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.vc-tag {
    background-color: #eef2ff;
    color: #3730a3;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 9999px;
    font-weight: 500;
    white-space: nowrap;
}

.video-collection-header #FilterTags {
    max-width: 150px;
    margin-bottom: 0;
    margin-top: 0;
}

.video-collection-header .card-buttons .card-btn {
    margin-top: 0;
    margin-right: 0;
    height: 32px;
    line-height: 25px;
    margin-left: 10px;
}

.video-collection-header .card-buttons {
    align-items: center;
}

    .video-collection-header .card-buttons .searchbar {
        padding: .26rem .5rem;
        border-radius: .25rem;
        transition: background-color 0.3s ease;
        color: #4B5675;
        background-color: #fff;
        border: 1px solid #ccc !important;
        height: 32px;
        margin-right: 10px;
    }
